package org.jsbd.boss.service.impl;

import java.util.List;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IHeartbeatApkConfigDao;
import org.jsbd.boss.domian.HeartbeatApkConfigBean;
import org.jsbd.boss.service.IHeartbeatApkConfigService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("heartbeatApkConfigService")
public class HeartbeatApkConfigServiceImpl implements IHeartbeatApkConfigService {

	@Autowired
	private IHeartbeatApkConfigDao heartbeatApkConfigDao;

	@Override
	public void saveHeartbeatApkConfig(HeartbeatApkConfigBean heartbeatApkConfig){
		heartbeatApkConfigDao.saveHeartbeatApkConfig(heartbeatApkConfig);
	}

	@Override
	public void updateHeartbeatApkConfig(HeartbeatApkConfigBean heartbeatApkConfig){
		heartbeatApkConfigDao.updateHeartbeatApkConfig(heartbeatApkConfig);
	}

	@Override
	public HeartbeatApkConfigBean getHeartbeatApkConfig(HeartbeatApkConfigBean heartbeatApkConfig) {
		return heartbeatApkConfigDao.getHeartbeatApkConfig(heartbeatApkConfig);
	}

	@Override
	public List<HeartbeatApkConfigBean> getHeartbeatApkConfigList(HeartbeatApkConfigBean heartbeatApkConfig) {
		return heartbeatApkConfigDao.getHeartbeatApkConfigList(heartbeatApkConfig);
	}

	@Override
	public Map<String, Object> getHeartbeatApkConfigListPage(DataGridModel page, HeartbeatApkConfigBean heartbeatApkConfig) {
		return heartbeatApkConfigDao.getHeartbeatApkConfigListPage(page, heartbeatApkConfig);
	}

	@Override
	public Integer getHeartbeatApkConfigCount(HeartbeatApkConfigBean heartbeatApkConfig) {
		return heartbeatApkConfigDao.getHeartbeatApkConfigCount(heartbeatApkConfig);
	}
	
	@Override
	public void deleteHeartbeatApkConfig(HeartbeatApkConfigBean heartbeatApkConfig) {
		heartbeatApkConfigDao.deleteHeartbeatApkConfig(heartbeatApkConfig);
	}
	
}
